<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <nav th:fragment="topBar">
        <h3>蜗牛小店</h3>
        <div th:if="${#strings.isEmpty(session.userInfo)}">
            <a th:href="@{/}">登 录</a>==== <a href="#">注 册</a>
        </div>
        <div th:if="${!#strings.isEmpty(session.userInfo)}">
            欢迎您 :<span th:text="${session.userInfo.username}"></span>==== <a th:href="@{/user/exit}">退 出</a>
        </div>
        <hr />
    </nav>

    <footer th:fragment="footBar">

    </footer>

</body>
</html>